home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 9773 < prev    next >
Encoding:
Text File  |  1996-08-05  |  1.4 KB  |  39 lines

  1. Newsgroups: comp.lang.c
  2. Path: tank.news.pipex.net!pipex!warwick!bsmail!talisker!nathan
  3. From: nathan@pact.srf.ac.uk (Nathan Sidwell)
  4. Subject: Re: confusion between putchar and printf
  5. Message-ID: <Do7AAH.IDx@uns.bris.ac.uk>
  6. Sender: usenet@uns.bris.ac.uk (Usenet news owner)
  7. Nntp-Posting-Host: talisker.pact.srf.ac.uk
  8. Organization: Inmos
  9. X-Newsreader: TIN [version 1.2 PL2]
  10. References: <4i1v2n$30o@news.azstarnet.com> <4i28j7INN65d@keats.ugrad.cs.ubc.ca> <4i5lfv$ltv@vivaldi.telepac.pt>
  11. Date: Wed, 13 Mar 1996 09:56:41 GMT
  12.  
  13. VORTEX (vortex@telepac.pt) wrote:
  14. : c2a192@ugrad.cs.ubc.ca (Kazimir Kylheku) wrote:
  15.  
  16. : >In article <4i1v2n$30o@news.azstarnet.com>,
  17. : >Howard Salmon  <captarm@azstarnet.com> wrote:
  18. : >int main()
  19. : >{
  20. [snip]
  21. : >    return 0;    /* all C programs need to return an exit status    */
  22. : >}
  23.  
  24. : No they don'r
  25.  
  26. : Just star with  void main(void) and you need to return any value
  27.  
  28. Shut the f*** up. void main(void) invokes implementation defined behaviour.
  29. It has been beaten to death a million times here. If you still don't
  30. understand this read the
  31. FAQ (http://www.eskimo.com/~scs/C-faq/top.html) questions 11.12-15.
  32.  
  33. nathan
  34. --
  35. Nathan Sidwell                         Holder of the Xmris home page
  36. Chameleon Architecture Group at SGS-Thomson, formerly Inmos
  37. http://www.pact.srf.ac.uk/~nathan/                  Tel 0117 9707182
  38. nathan@inmos.co.uk or nathan@bristol.st.com or nathan@pact.srf.ac.uk
  39.